package com.xju.travelmanager.controller;


import com.xju.travelmanager.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * wjx
 */
@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;


    /**
     * 注册
     */
    @RequestMapping("/register")
    public String register(){
        return "";
    }

    /**
     * 登录
     */
    @RequestMapping("/login")
    public String login(){
        return "common/login";
    }

    @RequestMapping("/sceniclist")
    public String scenic(@RequestParam(required = false, defaultValue = "1") Integer pageNum,
                         @RequestParam(required = false, defaultValue = "5") Integer pageSize){

        return "";
    }

    @RequestMapping("/main")
    public String  main(){
        return "user/main";
    }


}
